﻿@model GosWeb.Models.Db.MedicalRecord
@{
    ViewBag.Title = "建医疗记录";
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>@ViewBag.Title | @Html.ActionLink("返回详细页", "../Biont/Details", new { id = Model.AnID })
        </legend>
        <div class="editor-label">
            @Html.LabelFor(model => model.AnID)
        </div>
        <div class="editor-field">
            @Html.DisplayFor(model => model.AnID)
            @Html.HiddenFor(model => model.AnID)
            @Html.ValidationMessageFor(model => model.AnID)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.IllCode)
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.IllCode, new SelectList(GosWeb.Models.Db.Illness.IllList, "Code", "Name"))
            @Html.ValidationMessageFor(model => model.IllCode)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.MedicalDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.MedicalDate)
            @Html.ValidationMessageFor(model => model.MedicalDate)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Description)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </div>
        <p>
            <input type="submit" value="保存" />
        </p>
    </fieldset>
}
<div>
</div>
